package cn.skyquant.quant4j.task.boot.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Objects;

@Entity
public class EconomicsCategory {
    @Id
    public int id;
    public String country;
    public Integer star;
    public String dataname;
    public String institutions;
    public String frequency;
    public String method;
    public String impact;
    public String paraphrase;
    public String focus;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EconomicsCategory economics = (EconomicsCategory) o;
        return id == economics.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
